package com.bytedance.common.databinding;

public class a implements com.bytedance.common.databinding.e {
    private transient r mCallbacks;

    public a() {

    }

    public static boolean isPropertyChanged(Object arg4, Object arg5) {
        boolean v0 = false;
        if (arg4 != arg5) {
            int v3 = arg4 == null ? 1 : 0;
            int v2 = arg5 == null ? 1 : 0;
            if ((v2 ^ v3) != 0) {
                return true;
            }

            if (arg4.equals(arg5)) {
                return v0;
            }

            v0 = true;
        }

        return v0;
    }

    public synchronized void addOnPropertyChangedCallback(com.bytedance.common.databinding.e.a arg2) {
        if (this.mCallbacks == null) {
            this.mCallbacks = new r();
        }

        this.mCallbacks.a(arg2);
    }

    public synchronized void notifyChange() {
        if (this.mCallbacks != null) {
            this.mCallbacks.a(this, 0, null);
        }
    }

    public void notifyPropertyChanged(int arg3) {
        if (this.mCallbacks != null) {
            this.mCallbacks.a(this, arg3, null);
        }
    }

    public synchronized void removeOnPropertyChangedCallback(com.bytedance.common.databinding.e.a arg2) {
        if (this.mCallbacks != null) {
            this.mCallbacks.b(arg2);
        }
    }
}

